package com.whu.bookstore.entity;

/**
 * Created by chenshaojie on 2018/5/18,14:03.
 */
public class OrderItems {
    private int orderId;
    private int itemId;

    public int getOrderId () {
        return orderId;
    }

    public void setOrderId (int orderId) {
        this.orderId = orderId;
    }

    public int getItemId () {
        return itemId;
    }

    public void setItemId (int itemId) {
        this.itemId = itemId;
    }

    @Override
    public boolean equals (Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        OrderItems that = (OrderItems) o;

        if (orderId != that.orderId) return false;
        if (itemId != that.itemId) return false;

        return true;
    }

    @Override
    public int hashCode () {
        int result = orderId;
        result = 31 * result + itemId;
        return result;
    }
}
